# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pypacker
_pkgname=pypacker
pkgver=5.4
pkgrel=5
pkgdesc='The fast and simple packet creating and parsing module.'
arch=('any')
url='https://pypi.org/project/pypacker/#files'
license=('GPL2')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('809db20af965b7dea845fe340984bef26d837114cb3fa6bf8579f20a942c362ca29837a1787602ee1652de199cb4ffa0a3c4bc51118aa124bfdf9fb1cd4d5e28')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

